package com.blx.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.blx.model.request.PlanRequest;
import com.blx.model.response.PlanResponse;
import com.blx.service.PlanService;

/**
 * ClassName:  PlanController. <br/>
 * Description:  PlanController 页面处理类 <br/>
 * @author wangwl
 * 2013-3-4 下午10:04:16 <br/>
 * @version 1.0
 */
@Controller
@RequestMapping("/plan")
public class PlanController {

	private final Logger logger = LoggerFactory.getLogger(getClass());

	@Autowired
	private PlanService planService;

	/**
	 * 
	* @Description: 获取已经完成的旅行计划
	 */
	@ResponseBody
	@RequestMapping("getPlan")
	public PlanResponse getPlan(PlanRequest request){
		PlanResponse response = planService.getPlanList(request);
		return response;
	}
	
}

